<?php
if(!defined('ADMIN')){
	exit('Access Denied');
}

if($_POST['sub']=='save'){
    $listorder=$_POST["listorder"];
    if(!empty($listorder)){
     while(list($k,$v)=each($listorder)){
        
        $data=array("displayorder"=>$v);
        $ezhand->update("shopping3_category",$data,'id='.$k);  
            
        
     }  
    }   
    
}
$total=$ezhand->count("shopping3_category","1=1");
$row=$ezhand->select_all("shopping3_category",'*',"1=1 order by level asc,parentid asc,displayorder asc");

?>